/*************************************************************************
    > File Name: 
    > Author: Lancer
    > Mail: 18826075768@163.com
************************************************************************/

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <event2/event.h>
using namespace std;

int main(){
    struct event_base* base;
    enum event_method_feature f;

    base = event_base_new();
    printf("%s\n", event_base_get_method(base));

    f = event_base_get_features(base);

    if(f & EV_FEATURE_EARLY_CLOSE){
        cout << 1 << endl;
    }

    if(f & EV_FEATURE_ET){
        cout << 2 << endl;
    }

    if(f & EV_FEATURE_O1){
        cout << 3 << endl;
    }

    if(f & EV_FEATURE_FDS){
        cout << 4 << endl;
    }
    return 0;
}